package com.wind;

import java.util.ArrayList;
import java.util.List;


public class WindTypeAttribute {

	private String code;
	
	private String name;
	
	private List<WindConstraint> constraints = new ArrayList<WindConstraint>();
	
	public WindTypeAttribute(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public void addConstraint(WindConstraint constraint) {
		this.constraints.add(constraint);
	}
	
	public WindConstraint[] constraints() {
		return (WindConstraint[])this.constraints.toArray();
	}
}
